

<form action="/<?php echo AppController::APP_NAME?>/Groups/save" method="post" id="form_edit">
	<fieldset>
	    <legend>
			<h4><?php echo $group['Group']['id'];?></h4>
	    </legend>
	    <input type='hidden' name='Group[id]' value='<?php echo $group['Group']['id'];?>' />
	    <label>Descrizione</label> <input type="text" name="Group[descrizione]" value="<?php echo $group['Group']['descrizione'];?>" placeholder="Descrizione">
	    <p>
			<a href='/<?php echo AppController::APP_NAME?>/Groups/add' class="btn" ><i class='icon-plus'></i></a>
			<button type="submit" class="btn btn-primary"><i class='icon-ok'></i></button>
			<a href='/<?php echo AppController::APP_NAME?>/Groups/delete/<?php echo $group['Group']['id'];?>' class="btn" ><i class='icon-trash'></i></a>
		</p>
	</fieldset>
	<?php unset($group); ?> 
</form>

<script>
	function elimina() {
		$("#form_user_edit").attr("action", "/<?php echo AppController::APP_NAME?>/Groups/delete").submit(); 
	}
</script>

</form>


